<%--@elvariable id="company" type="com.singbon.service.CustomAuthenticationFilter"--%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <script src="${pageContext.request.contextPath}/static/js/jquery-1.7.2.min.js" type="text/javascript"></script>
  <script type="text/javascript">
    function logThisOut() {
      <%--      <%--%>
      <%--        response.setHeader("Pragma","No-cache");--%>
      <%--        response.setHeader("Cache-Control","no-cache");--%>
      <%--        response.setDateHeader("Expires", 0);--%>
      <%--        response.flushBuffer();--%>
      <%--      %>--%>
      <%--      // [代码] 二、清除cookie--%>
      <%--      <%--%>
      <%--      Cookie killMyCookie = new Cookie("mycookie", null);--%>
      <%--      killMyCookie.setMaxAge(0);--%>
      <%--      killMyCookie.setPath("/");--%>
      <%--      response.addCookie(killMyCookie);--%>
      <%--      %>--%>
      <%--      // [代码] 三、清除session--%>
      <%--      <%--%>
      <%--      request.getSession().invalidate();--%>
      <%--      %>--%>
      //在页面关闭时清除session，需要捕获windows.onclose事件，再调用清除session方法
      // href="/logout.do"
      <%--console.log("loginRedirectUriServer11111111111:" + '${loginRedirectUriServer}');--%>
      <%--$.get('${loginRedirectUriServer}/zk0vxsxuq7/revokeToken/', function (e) {--%>
      <%--  console.log("e:" + e);--%>
      <%--});--%>
      window.location = "/logout";
      // window.location = "/logout?redirectUri=http://localhost:8080"
    }
  </script>
</head>
<body>
<div id="layout">
  <a href="${pageContext.request.contextPath}/logout.do">退出</a>
</div>
</body>
</html>
